fix: types for query values#3985
Conversation
This comment was marked as off-topic.
This comment was marked as off-topic.
|
@wellwelwel I see you added the |
Yes, thanks @uPaymeiFixit! I don't know how these types perform in general with variations such as placeholders, nested arrays, and complex parameter combinations, especially in the case of For TypeScript, there are compilation tests (which do not execute code, but only check types usage), for example:
You can run them with |
|
Awesome! I ran the |
|
@uPaymeiFixit, my main concern was how these types would behave with |
|
Good catch, I completely forgot about named placeholders. In case it's helpful, I also updated my tsplayground test. |
|
Thanks again, @uPaymeiFixit! Just to be sure, I tried a random case with nested arrays: query('INSERT ...', ['john', 30, [[[{a: true}], 6]]]); // ✅ |

Fixes #3982